package com.atguigu.service;

import com.atguigu.pojo.SysUser;

import java.sql.SQLException;

public interface UserService {
    /**
     * 用户登录
     * @param username
     * @param password
     * @return
     * @throws SQLException
     */
    SysUser login(String username, String password) throws SQLException;

    /**
     * 修改用户密码
     * @param uid
     * @param password
     * @param newpassword
     * @return
     */
    boolean updateUserPassword(Integer uid, String password, String newpassword) throws SQLException;
}
